//
//  TaskViewHelper+Extensions.swift
//  SwiftUILean
//
//  Created by wyknmjj on 2024/5/14.
//

import SwiftUI

extension View{
    @ViewBuilder
    func hSpacing(_ alignment: Alignment) -> some View{
        self.frame(maxWidth: .infinity,alignment: alignment)
    }
    
    @ViewBuilder
    func vSpacing(_ alignment: Alignment) -> some View{
        self.frame(maxHeight: .infinity, alignment: alignment)
    }
    
    @ViewBuilder
    func isSameDate(_ d1:Date, _ d2: Date)->Bool{
        return Calendar.current.isDate(d1, inSameDayAs: d2)
    }
}
